<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>easyui_4</title>
    <link rel="stylesheet" type="text/css" href="static/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="static/easyui/themes/icon.css">
    <script type="text/javascript" src="static/js/jquery.min.js"></script>
    <script type="text/javascript" src="static/easyui/jquery.easyui.min.js"></script>
</head>
<body>
<input id="clock" class="easyui-datebox" label="Clock_1" labelPosition="top" data-options="buttons:buttons,onSelect:whenYouSelect"/>

    <script>
            var buttons=$.extend([],$.fn.datebox.defaults.buttons);
            buttons.splice(1,0,{
                text:'niu',
                handler:function (target) {
                    alert("haha");
                }
            });
            function whenYouSelect(date) {
                var wrongYear=date.getYear();//此时的year值是错误的
                var rightYear=wrongYear+2000-100;
                alert(rightYear+"年"+(date.getMonth()+1)+"月"+date.getDate()+"日");
            }
    </script>
</body>
</html>